#pragma onece
#include "EventLoop.h"
#include "Buffer.h"
#include "Channel.h"
#include "HttpRequest.h"
#include "HttpResponse.h"


// #define MSG_SEND_AUTO

struct TcpConnection
{
    struct EventLoop *evLoop;
    struct Channel *channel;
    struct Buffer *readBuff;
    struct Buffer *writeBuff;
    char name[32];
    //http协议
    struct HttpRequest *request;
    struct HttpResponse *response;
};

//初始化
struct TcpConnection *TcpConnectionInit(int32_t fd, struct EventLoop *evLoop);
int TcpConnectionDestroy(void *arg);
